//手机、座机
export const phoneReg = /^(1[3-9][0-9]{9}|(?:0[1-9][0-9]{1,2}-)?[2-8][0-9]{6,7})$/;

//手机
export const mobileReg = /^1[3-9][0-9]{9}$/;

export const mobileReg2 = /1[3-9][0-9]{9}/;

//座机
export const landlineReg = /^(?:0[1-9][0-9]{1,2}-)?[2-8][0-9]{6,7}$/;

//中文空格
export const spaceCh = /\u0009+/;

//地区
export const areaReg = /.+?(省|市|自治区|自治州|县|区)/g;

// export const hanReg = /[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29\u{20000}-\u{2A6D6}\u{2A700}-\u{2B734}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}]/u

export const numberReg = /^\d+$/;

export const dateReg = /[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/;
export const timeReg = /(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d/;
export const dateTimeReg =
	/[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d/;

export const imgReg = /(\.jpeg|\.png|\.jpg|\.webp|\.svg)/i

export const baseUrlReg = /^http/
